Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.default = void 0;

var e = require("../@babel/runtime/helpers/classCallCheck"), t = require("../@babel/runtime/helpers/createClass"), r = require("../@babel/runtime/helpers/inherits"), o = require("../@babel/runtime/helpers/createSuper"), u = function(u) {
    r(n, u);
    var s = o(n);
    function n() {
        return e(this, n), s.apply(this, arguments);
    }
    return t(n, [ {
        key: "receiveCoupon",
        value: function(e) {
            return this.request({
                url: "/ams/couponHistory/addCouponMember",
                data: {
                    couponId: e
                },
                method: "post"
            });
        }
    }, {
        key: "getCouponByGoods",
        value: function(e) {
            return this.request({
                url: "/ams/couponHistory/appropriateCouponList",
                data: e,
                method: "post"
            });
        }
    }, {
        key: "couponList",
        value: function(e) {
            return this.request({
                url: "/ams/couponHistory/getMeberCouponHistoryList",
                data: e,
                method: "post"
            });
        }
    }, {
        key: "couponDetails",
        value: function(e) {
            return this.request({
                url: "/ams/couponHistory/getMemberCouponHistoryDetail/".concat(e)
            });
        }
    }, {
        key: "useableCouponCount",
        value: function() {
            return this.request({
                url: "/ams/couponHistory/getMeberCouponHistoryUsableCount",
                method: "post"
            });
        }
    }, {
        key: "cardBag",
        value: function(e) {
            var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 10;
            return this.request({
                url: "/ams/couponHistory/cardBag",
                data: {
                    pageNum: e,
                    pageSize: t
                },
                method: "post"
            });
        }
    }, {
        key: "functionCard",
        value: function(e) {
            var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 10;
            return this.request({
                url: "/ams/couponHistory/functionCard",
                data: {
                    pageNum: e,
                    pageSize: t
                },
                method: "post"
            });
        }
    } ]), n;
}(require("./_http").HTTP);

exports.default = u;